/*
*@Author:coocase
*@Date:2021-03-1213:41:13
 * @LastEditTime: 2021-06-09 13:33:23
 * @LastEditors: coocase
*@Description:mock数据
 * @FilePath: \git\dami\src\common\mock\data.js
*/
var Mock = require('mockjs')


/*主页商品分类数据*/
export var indexMenu = Mock.mock(
    {
        success: '1',
        errorCode: '0',
        msg: '',
        "data|5": [
            {
                "id|+1": 1,
                "itemType": "@ctitle(3)",
                "level": 1,
                "parent": 0,
                "aliasName": "value",
                "children|2-4": [
                    {
                        "itemId|+1": 1,
                        "itemType": "@ctitle(2)",
                        "level": 2,
                        "parent": 1,
                        "aliasName": "value"
                    }
                ],
                "hotItems": [
                    {
                        "id|100-200": 101,
                        "itemName": "@cparagraph()",
                        "minPrice|10-100": 30,
                        "imgUrl": "@url()"
                    }
                ]
            }
        ]
    }
)

//轮播数据
export var indexBanner = Mock.mock({
    "banner|5": [{
        "id|+1": 1,
        "itemName": "@cword(3)",
        "minPrice|10-300": 15,
        "imgUrl": "@color"
    }]


})
//即将开售推荐
export var tabData = Mock.mock({
    "willbesale|6": [{
        "id|+1": 1,
        "itemName": "@cword(14)",
        "minPrice|10-300": 15,
        "imgUrl": "@color"
    }],
    "recommend|6": [{
        "id|+1": 1,
        "itemName": "@cword(14)",
        "minPrice|10-300": 15,
        "imgUrl": "@color"
    }]

})

//floor
export var floorData = Mock.mock({
    'floor|5': [{
        "floorId|+1": 1,
        'floorName': "@cword(4)",
        "floorItem|5": [{
            "id|+1": 1,
            "itemName": "@cword(14)",
            "minPrice|10-300": 15,
            "imgUrl": "@color",
            "itemDate": "@Date()"
        }]
    }]
})

//hotlist
export var hotList = Mock.mock({
    "hotList|5": [{
        "hotId|+1": 1,
        "hotName": "@cword(4)",
        "ListData|12": [{
            "listId|+1": 1,
            "listName": "@cword(15)"
        }]

    }]
})

//hotlist
export var accountInfo = Mock.mock({
    'name': "@cword(4)",
    'phonenumber|10000000000-19999999999': 13515626984,
    '1Name': "@cword(4)",
    'id': 512522198911250352,
    'birthday': '@date()',
    'gender': 'male'
})
//users
export var users = Mock.mock({
    'pages|1-4': [{
        'datas|5': [{
            'name': "@cword(3)",
            'phoneNumber|10000000000-19999999999': 13515626984,
            'id': 512522198911250352,
        }]

    }]


})

//orders
export var orders = Mock.mock({
    'pages|2-4': [{
        'datas|5': [{
            'id|+1': 60015219891125,
            'name': "@cword(15)",
            'date': '@date()',
            'count|1-20': 0,
            'unitPrice|20-200': 20,
            'state': '@cword(3)'
        }]

    }]


})

//searhResult
export var results = Mock.mock({
    'pages|2-5': [{
        'datas|6': [{
            'id|+1': 1,
            'name': "@cword(15)",
            'date': '@date()',
            'address': '@county(1)',
            'unitPrice|20-200': 20,
            'title': '@ctitle(3,6)',
            "imgUrl": "@color",
        }]

    }]
})
//推荐
export var sider = Mock.mock({

    'datas|5': [{

        'name': "@cword(15)",
        'date': '@date()',
        'address': '@county(1)',
        'unitPrice|20-200': 20,
        'title': '@ctitle(3,6)',
        "imgUrl": "@color",
    }]


})

//详情页数据
export  var  detail = Mock.mock({
    'id|+1': 1,
    'abstractMessage': '@cword(10)',
    "itemName": '@ctitle(3,8)',
    'itemType1Id|+1': 1,
    'itemType1Name': '@ctitle(2,4)',
    'itemType2Id|+1': 1,
    'itemType2Name': '@ctitle(2,4)',
    'areaId|+1': 1,
    'areaName': '@ctitle(4-6)',
    'startTime|3': [{
        'id|+1': 1,
        'time': '@datetime()'
    }

    ],
    'endTime': '@date()',
    'state|1-4': 1,
    'basicDescription': '@cparagraph(2)',
    'projectDescription': '@cparagraph(20)',
    'reminderDescription': '@cparagraph(4)',
    'imgUrl': '@color',
    'itemPrice|4': [{
        'id|+1': 1,
        'price|20-300': 50
    }],
    'cinemaId|+1': 1,
    'adress': '@city(1)',
    'latitude': '',
    'longitude': '',
    'avgScore|1-10': 2,
    'commentCount|10-1000': 203,
    'commentsPages|2-5': [{
        'comments|5': [{
            'userName': '@cname()',
            'comment': '@cparagraph(1,3)',
            'score|1-10': 2,
            'date': '@datetime()'
        }]
    }]
})

export  var  seats=Mock.mock({
    'state':[
        [1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2],
        [1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,2,2],
        [1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,2,2],
        [2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2],
        [1,0,1,0,1,1,0,1,1,1,1,1,1,2,2,1,1,0,1,2,2],
        [1,0,1,1,0,0,1,1,1,0,1,1,1,2,2,1,1,1,0,2,2],
        [1,1,1,1,1,1,1,1,1,1,0,1,0,2,2,1,0,0,0,2,2],
        [1,0,1,0,0,1,1,1,1,1,1,0,0,2,2,1,1,1,1,2,2],
        [1,0,0,1,1,1,1,1,1,1,1,1,1,2,2,1,1,0,0,2,2],
        [1,0,1,0,0,1,1,1,1,1,1,0,0,2,2,1,0,1,0,2,2],
        [1,1,0,1,1,1,1,1,0,1,1,1,1,2,2,1,0,0,0,2,2],
        [1,1,0,0,1,0,1,1,1,0,0,1,1,2,2,0,1,1,0,1,1],
        [1,1,1,0,1,0,0,1,0,0,0,0,0,2,2,1,0,1,0,0,1],
        [1,0,0,0,1,1,0,1,1,0,0,0,1,1,0,0,1,1,0,1,1]
    ],
    'level':[
        [3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2],
        [3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2],
        [3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2],
        [2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2],
        [4,4,4,4,4,4,4,4,4,4,4,4,4,2,2,4,4,4,4,2,2],
        [4,4,4,4,4,4,4,4,4,4,4,4,4,2,2,4,4,4,4,2,2],
        [4,4,4,4,4,4,4,4,4,4,4,4,4,2,2,4,4,4,4,2,2],
        [4,4,4,4,4,4,4,4,4,4,4,4,4,2,2,4,4,4,4,2,2],
        [4,4,4,4,4,4,4,4,4,4,4,4,4,2,2,4,4,4,4,2,2],
        [4,4,4,4,4,4,4,4,4,4,4,4,4,2,2,4,4,4,4,2,2],
        [4,4,4,4,4,4,4,4,4,4,4,4,4,2,2,4,4,4,4,2,2],
        [5,5,5,5,5,5,5,5,5,5,5,5,5,2,2,5,5,5,5,5,5],
        [5,5,5,5,5,5,5,5,5,5,5,5,5,2,2,5,5,5,5,5,5],
        [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5]
    ]
})


//test
export  var  phoneLogin = Mock.mock({
    success: '1',
    errorCode: '0',
    msg: '',
    data: {
        'name': 'zsf'
    }
})